package com.xmb.wechat.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;

/**
 * @Author lijiangop
 * @CreateTime 2020/4/21 09:18
 */
@Entity
public class PayProofBean implements Parcelable, MultiItemEntity {
    @Id
    long id;

    int    type;
    String typeName;
    long   msgTime;
    String money;

    //零钱
    String startTime;
    String finishTime;
    String bankCard;

    //二维码
    String countNumber;
    String countMoney;

    //支付凭证
    String receiveName;
    String payType;

    public PayProofBean() {
    }

    protected PayProofBean(Parcel in) {
        type = in.readInt();
        typeName = in.readString();
        msgTime = in.readLong();
        money = in.readString();
        startTime = in.readString();
        finishTime = in.readString();
        bankCard = in.readString();
        countNumber = in.readString();
        countMoney = in.readString();
        receiveName = in.readString();
        payType = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(type);
        dest.writeString(typeName);
        dest.writeLong(msgTime);
        dest.writeString(money);
        dest.writeString(startTime);
        dest.writeString(finishTime);
        dest.writeString(bankCard);
        dest.writeString(countNumber);
        dest.writeString(countMoney);
        dest.writeString(receiveName);
        dest.writeString(payType);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<PayProofBean> CREATOR = new Creator<PayProofBean>() {
        @Override
        public PayProofBean createFromParcel(Parcel in) {
            return new PayProofBean(in);
        }

        @Override
        public PayProofBean[] newArray(int size) {
            return new PayProofBean[size];
        }
    };

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public long getMsgTime() {
        return msgTime;
    }

    public void setMsgTime(long msgTime) {
        this.msgTime = msgTime;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(String finishTime) {
        this.finishTime = finishTime;
    }

    public String getBankCard() {
        return bankCard;
    }

    public void setBankCard(String bankCard) {
        this.bankCard = bankCard;
    }

    public String getCountNumber() {
        return countNumber;
    }

    public void setCountNumber(String countNumber) {
        this.countNumber = countNumber;
    }

    public String getCountMoney() {
        return countMoney;
    }

    public void setCountMoney(String countMoney) {
        this.countMoney = countMoney;
    }

    public String getReceiveName() {
        return receiveName;
    }

    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    @Override
    public int getItemType() {
        return type;
    }
}
